<? include("include/session.php"); ?>
<?php
	 $page="useredit.php";
	 header("Refresh: 1; URL=\"" . $page . "\"");
		mysql_connect ('localhost', 'deb46160', 'd3e01tGF') or die ('Error: ' .mysql_error());
		mysql_select_db ("deb46160_PizzaRio");
		$adres = $_REQUEST['adres'];
		$naam = $_REQUEST['naam'];
		$postcode = $_REQUEST['postcode'];
		$user = $_SESSION['username'];
		$query="INSERT INTO `Klantgegevens` VALUES ('".$_REQUEST['adres']."','".$user."', '".$_REQUEST['postcode']."','".$_REQUEST['naam']."')";
		mysql_query($query) or die(mysql_error());
		echo $adres;
		echo $postcode;
		echo $user;
		
?>
